package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;

/**
 * @author: wufeng
 * @date: 2018/8/23 15:36
 * @desrcption: 节点类型枚举类
 */
public enum NodeTypeEnum {

    /**
     *
     */
    START_PROCESS_NODE(1, "startProcessNode", "enum.nodeType.memo.start_process_node"),
    END_PROCESS_NODE(2, "endProcessNode", "enum.nodeType.memo.end_process_node"),
    PROCESS_NODE(3, "processNode", "enum.nodeType.memo.process_node"),
    CC_PROCESS_NODE(4, "ccProcessNode", "enum.nodeType.memo.cc_process_node"),
    CONDITION_PROCESS_NODE(5, "conditionProcessNode", "enum.nodeType.memo.condition_process_node"),
    CONDITION_WRAPPER_PROCESS_NODE(6, "conditionWrapperProcessNode", "enum.nodeType.memo.condition_wrapper_process_node");

    private Integer nodeType;

    private String alias;

    private String memo;

    NodeTypeEnum(Integer nodeType, String alias, String memo){
        this.nodeType = nodeType;
        this.alias = alias;
        this.memo = memo;
    }

    public Integer getNodeType() {
        return nodeType;
    }

    public void setNodeType(Integer nodeType) {
        this.nodeType = nodeType;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
